-- GENERATED SPELL FOR [Withered Protector] --


function spell0_7149(pUnit, Event) --@Wither Strike,Heal--
pUnit:FullCastSpellOnTarget(5337,pUnit)
pUnit:RegisterEvent('Sorts_7149', 8252, 1)
end

function Sorts_7149(pUnit, Event)
local choix_sorts_7149 = math.random(0, 0)
if choix_sorts_7149 == 0 then
pUnit:RegisterEvent('spell0_7149', 1, 1)
end
end

function mob7149_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7149', math.random(1500, 3000), 1)
end

function mob7149_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7149_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7149_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7149, 1, 'mob7149_Action')
RegisterUnitEvent(7149, 2, 'mob7149_Leave')
RegisterUnitEvent(7149, 3, 'mob7149_Kill')
RegisterUnitEvent(7149, 4, 'mob7149_Die')
